package com.tcm.smarthealth.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;

import java.time.LocalDateTime;

@Schema(name = "HistoryStatsResponse", description = "历史记录统计信息")
public class HistoryStatsResponse {

    @Schema(description = "问答记录数量", example = "12")
    private long totalQuestionRecords;

    @Schema(description = "影像记录数量", example = "5")
    private long totalImageRecords;

    @Schema(description = "最新问答时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime latestQuestionTime;

    @Schema(description = "最新影像时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime latestImageTime;

    public long getTotalQuestionRecords() {
        return totalQuestionRecords;
    }

    public void setTotalQuestionRecords(long totalQuestionRecords) {
        this.totalQuestionRecords = totalQuestionRecords;
    }

    public long getTotalImageRecords() {
        return totalImageRecords;
    }

    public void setTotalImageRecords(long totalImageRecords) {
        this.totalImageRecords = totalImageRecords;
    }

    public LocalDateTime getLatestQuestionTime() {
        return latestQuestionTime;
    }

    public void setLatestQuestionTime(LocalDateTime latestQuestionTime) {
        this.latestQuestionTime = latestQuestionTime;
    }

    public LocalDateTime getLatestImageTime() {
        return latestImageTime;
    }

    public void setLatestImageTime(LocalDateTime latestImageTime) {
        this.latestImageTime = latestImageTime;
    }
}

